package com.yoshino.prototype.deepclone;

import java.io.Serializable;

/**
 * 深拷贝演示
 * @author yoshino
 **/
public class DeepCloneableTarget implements Serializable, Cloneable {

    private String cloneName;

    private String cloneClass;

    private static final long serialVersionUID = -8625171686162580712L;

    public DeepCloneableTarget(String cloneName, String cloneClass) {
        this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    // 因为该类的属性，都是String,因此我们这里使用默认的clone完成即可

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
